<style type="text/css">
a {
	color:#F00;
	text-decoration:none
}
a:hover {
	color:#F60;
	text-decoration:underline
}
#authenticate {
	height: 305px;
	width: 600px;
	text-align: center;
	line-height: 25px;
	border: 1px solid #666;
}
.alignleft {
	float: left;
}
.alignright {
	float: left;
	margin-top: 15px;
}
</style>
<script>
function reSentEmail(){
	var email = document.getElementById('email').value;
	$.post('<?php echo CHtml::normalizeUrl(array('/site/reSentEmail'));?>',{'uid':'<?=$model->uid?>','email':email}, function (data) {
        var ret = $.parseJSON(data);
        if (ret != null && ret.success != null && ret.success) {
			alert(ret.msg);
			if(ret.msg=='郵件發送成功，請查收！'){
				parent.location.reload(true);
			}
        }
	});
}
</script>
<div id="authenticate"><img src="images/checkmail3.png" alt="信箱驗證" width="500" height="35" class="alignleft" title="信箱驗證" />
  <div style="background:url(images/checkmail2.png) no-repeat left center;margin-top:10px; height:260px">
    <form id="form1" name="form1" method="post" action="" style="float:right; margin-top:10px; width:435px; text-align:left">
      <p>請輸入新信箱地址：
        <label for="textfield"></label>
      <input type="text" name="email" id="email" />&nbsp;
      <input type="button" name="button" onclick="reSentEmail()" id="button" value="送出" />
      <label for="textfield2"></label>
      &nbsp;<a href="#" title="變更手機號碼" target="_blank" class="alignright"><br />
      </a></p>
      <p>
        <br /><br />
      </p>
    </form>
  </div>
</div>